<?php
namespace Modules\Backend\Controllers;

class UserWalletController extends ControllerBase {
  public function rechargeByAccountAction() {
    return $this -> returnByJson($this -> user -> getSharedFactory() -> getFacade('Wallet') -> rechargeByAccount(
      $this -> request -> getPost('field', 'absint', 0, true),
      $this -> request -> getPost('account', 'string', null, true),
      $this -> request -> getPost('amount', 'float', 0, true)
    ));
  }
}
